home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / bing-1.1.3.lha / bing-1.1.3 / src / Makefile < prev    next >
Makefile  |  2002-09-25  |  2KB  |  114 lines

  1. #
  2. # $Id: Makefile, unofficial v1.1.3
  3. #
  4.  
  5.  
  6. ##########
  7. #
  8. # Customise the following variables to match your configuration standards
  9. #
  10. ##########
  11.  
  12. BINDIR=/usr/bin
  13. MANDIR=/usr/man
  14.  
  15.  
  16. ##########
  17. #
  18. # Uncomment the lines below as appropriate for your platform.
  19. #
  20. ##########
  21.  
  22. # Uncomment if you need the 4.4 BSD compatibility includes.
  23. #  -> required on Linux (and Win32)
  24. COMPAT_INCS = -Iinclude
  25.  
  26. # Maybe specify some specific compatibility options
  27. #  -> on AIX activate the BSD mode
  28. #COMPAT_DEFS= -D_BSD
  29.  
  30. # On some systems you may need to link with specific libraries
  31. #  -> on SunOS 5 (Solaris) link with
  32. #COMPAT_LIBS=-lnsl -lsocket -L/usr/ucblib -lucb
  33.  
  34. # Define if you lack srandom()/random()
  35. #  -> required on Solaris (and Win32)
  36. #NO_RANDOM = -DNO_RANDOM=1
  37.  
  38. # Define to use srandom/random rather than srand/rand
  39. #  -> required on SunOS 4.1.3, SunOS 5, AIX 2 (BOSX 2 really), OSF1 V2.0
  40. NO_SNPRINTF = -DNO_SNPRINTF=1
  41.  
  42. # Define if you lack strerror()
  43. #NO_STRERROR = -DNO_STRERROR=1
  44.  
  45. # You may optionally provide some optimisation flags. Optimising bing for 
  46. # speed should slightly improve the results.
  47. #  -> if you want to debug bing define
  48. #COPTIM = -g
  49. #  -> on Linux, SunOS 4 and OSF1 V2.0 you may specify
  50. COPTIM = -O2
  51. #  -> on Solaris you may use
  52. #COPTIM = -O
  53. # on some hosts like AIX, HP-UX the optimisation options are already set
  54.  
  55. ##########
  56. #
  57. # Define where tools are stored
  58. #
  59. ##########
  60.  
  61. INSTALL=install -c
  62. GROFF=groff
  63. NROFF=nroff
  64. RM=/bin/rm
  65.  
  66.  
  67. ##########
  68. #
  69. # Compilation rules
  70. #
  71. ##########
  72.  
  73. BINCS = \
  74.     -I. \
  75.     $(COMPAT_INCS)
  76.  
  77. BDEFS = \
  78.     $(COMPAT_DEFS) \
  79.     $(NO_RANDOM) \
  80.     $(NO_SNPRINTF) \
  81.     $(NO_STRERROR) \
  82.     $(CDEBUG)
  83.  
  84. BLIBS = \
  85.     $(COMPAT_LIBS)
  86.  
  87. OBJS=    bing.o icmp_ux.o
  88.  
  89. all:    bing bing.0 bing.ps
  90.  
  91. dist:    clean bing.0 bing.ps
  92.  
  93. bing.o:        bing.c mod_icmp.h
  94.     $(CC) $(CFLAGS) $(BINCS) $(BDEFS) -o $@ -c bing.c
  95.  
  96. icmp_ux.o:    unix/icmp_ux.c mod_icmp.h
  97.     $(CC) $(CFLAGS) $(BINCS) $(BDEFS) -o $@ -c unix/icmp_ux.c
  98.  
  99. bing:    $(OBJS)
  100.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(BLIBS) 
  101.  
  102. bing.ps: unix/bing.8
  103.     $(GROFF) -man unix/bing.8 > bing.ps
  104.  
  105. bing.0: unix/bing.8
  106.     $(NROFF) -man unix/bing.8 > bing.0
  107.  
  108. clean:
  109.     $(RM) -f bing bing.ps bing.0 $(OBJS)
  110.  
  111. install: bing unix/bing.8
  112.     $(INSTALL) -m 644 -o man -g man unix/bing.8 $(MANDIR)/man8
  113.     $(INSTALL) -m 4555 -o root -g staff bing $(BINDIR)
  114.